package com.me.mygdxgame.renderer;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.PerspectiveCamera;

public class Camera
{
	private static Camera instance = null;
	
	private PerspectiveCamera camera;

	private Camera()
	{ 
		camera = new PerspectiveCamera(67, 45, 45 / (Gdx.graphics.getWidth() / Gdx.graphics.getHeight()));
		camera.near = 1;
		camera.far = 200;
	}
	
	
	public static Camera getInstance()
	{
		if(instance == null)
		{
			instance = new Camera();
		}
		
		return instance;
	}
	
	public PerspectiveCamera getCamera()
	{
		return camera;
	}
	
	
}
